function getRandomArbitary( min, max )
{
    return Math.random() * ( max - min ) + min;
}

function intersectionSquares( x1, y1, w1, h1, x2, y2, w2, h2 )
{
    var a = 'false';
    var b = 'false';
    var c = 'false';

    if ( ((x1 < x2) && (x2 < (x1+w1))) || 
         ((x1 < (x2+w2)) && ((x2+w2) < (x1+w1))) || 
         ((x2 < x1) && (x1 < (x2+w2))) || 
         ((x2 < (x1+w1)) && ((x1+w1) < (x2+w2))) )
    {
        a = 'true';
    }
    if ( ((y1 < y2) && (y2 < (y1+h1))) ||
         ((y1 < (y2+h2)) && ((y2+h2) < (y1+h1))) ||
         ((y2 < y1) && (y1 < (y2+h2))) ||
         ((y2 < (y1+h1)) && ((y1+h1) < (y2+h2))) )
    {
        b = 'true';
    }   
    c = ( a == 'true' && b == a ) ? 'true' : 'false';
    return c;
}